# include <stdio.h>
int main()
{
	int x,y,z;//x为公鸡，y为母鸡，z为小鸡
	for(x=0;x<1429;x++){ 
		y = 2500-7*x/4;
        z = 7500+3*x/4;
        if((x+y+z==10000)&&(5*x+3*y+z/3==10000)&&(z%3==0)) 
			printf("公鸡：%d只  母鸡：%d只  小鸡：%d只\n",x,y,(10000-x-y)/3);
 
	} 
    return 0;
}